Skip to content

Inscoper::RoiCrop

RoiCrop class defines a Region Of Interest for cropping. More...

#include <RoiCrop.h>

Public Functions

Name
RoiCrop()
Default constructor.
virtual ~RoiCrop() =default
Virtual destructor.
int getHeight() const
Get height.
void setHeight(int height)
Set height.
int getWidth() const
Get width.
void setWidth(int width)
Set width.
int getX() const
Get X coordinate.
void setX(int x)
Set X coordinate.
int getY() const
Get Y coordinate.
void setY(int y)
Set Y coordinate.

Detailed Description

class Inscoper::RoiCrop;

RoiCrop class defines a Region Of Interest for cropping.

Specifies a rectangular region defined by its top-left coordinates (x, y) and its dimensions (width, height) to be used for image cropping operations.

Public Functions Documentation

function RoiCrop

inline RoiCrop()

Default constructor.

Initializes a RoiCrop with all values set to 0.

function ~RoiCrop

virtual ~RoiCrop() =default

Virtual destructor.

function getHeight

inline int getHeight() const

Get height.

Return: The height value

Retrieves the height of the crop region.

function setHeight

inline void setHeight(
    int height
)

Set height.

Parameters:

  • height : The new height value

Sets the height of the crop region.

function getWidth

inline int getWidth() const

Get width.

Return: The width value

Retrieves the width of the crop region.

function setWidth

inline void setWidth(
    int width
)

Set width.

Parameters:

  • width : The new width value

Sets the width of the crop region.

function getX

inline int getX() const

Get X coordinate.

Return: The X coordinate

Retrieves the X coordinate (left) of the crop region.

function setX

inline void setX(
    int x
)

Set X coordinate.

Parameters:

  • x : The new X coordinate

Sets the X coordinate (left) of the crop region.

function getY

inline int getY() const

Get Y coordinate.

Return: The Y coordinate

Retrieves the Y coordinate (top) of the crop region.

function setY

inline void setY(
    int y
)

Set Y coordinate.

Parameters:

  • y : The new Y coordinate

Sets the Y coordinate (top) of the crop region.


Updated on 2026-04-02 at 10:55:36 +0200